//
//  TRBaseUIViewController.m
//  WeiMiLan
//
//  Created by anan on 15/1/25.
//  Copyright (c) 2015年 Mac. All rights reserved.
//

#import "TRBaseUIViewController.h"

@interface TRBaseUIViewController ()

@end

@implementation TRBaseUIViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    // Do any additional setup after loading the view.
    self.view.backgroundColor = [UIColor whiteColor];
    self.automaticallyAdjustsScrollViewInsets = NO;

}

- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

- (void)viewWillDisappear:(BOOL)animated
{
    [super viewWillDisappear:animated];
    NSString *str = [NSString stringWithUTF8String:object_getClassName(self)];
    [MobClick endLogPageView:str];
}

- (void)viewDidAppear:(BOOL)animated
{
    [super viewDidAppear:animated];
    NSString *str = [NSString stringWithUTF8String:object_getClassName(self)];
    [MobClick beginLogPageView:str];
    [self viewDidLayoutSubviews];
}

/*
#pragma mark - Navigation

// In a storyboard-based application, you will often want to do a little preparation before navigation
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
    // Get the new view controller using [segue destinationViewController].
    // Pass the selected object to the new view controller.
}
*/

@end
